<?php /* Smarty version 2.6.26, created on 2018-07-05 16:53:41
         compiled from D:%5Cwww%5Cvweb/admin%5Ctemplates/admin/log.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>  
<div class="nav"><span>日志详情</span></div> 
<div class="filter"> 
	<?php if ($_SESSION['admin']['power'] == '1'): ?>
		<input type="button" name="del_checked" class="del_ck button" value="删除选项"/>
	<?php endif; ?>	 
	<select name="type" class="select" id="log_type">
		<option value="0" <?php if ($_GET['type'] == '0'): ?>selected="selected"<?php endif; ?>>全部日志</option> 
		<option value="1" <?php if ($_GET['type'] == '1'): ?>selected="selected"<?php endif; ?>>登录日志</option> 
		<option value="2" <?php if ($_GET['type'] == '2'): ?>selected="selected"<?php endif; ?>>操作日志</option>  
	</select> 
</div>
<style type="text/css">
i{ text-align:center; }
</style>
<div class="main"> 
	<table class="ltable">
	  	<thead>
		  	<tr>
				<?php if ($_SESSION['admin']['aid'] == '1'): ?>
					<th width="30"><input type="checkbox" class="checked_all"/></th>
				<?php endif; ?>	
				<th width="500">描述</th>
				<th width="110">操作IP</th> 
				<th width="130">时间</th> 
				<th width="150">操作</th> 
				<th></th>
		  	</tr>
	  	</thead>
		<tbody>
		<?php if ($this->_tpl_vars['data']): ?>
			<?php $_from = $this->_tpl_vars['data']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
				<tr>
					<?php if ($_SESSION['admin']['aid'] == '1'): ?>
						<td><input name="key_id[]" type="checkbox" value="<?php echo $this->_tpl_vars['i']['id']; ?>
" class="checked_list"/></td>
					<?php endif; ?>	
					<td><?php echo $this->_tpl_vars['i']['desc']; ?>
</td>
					<td><?php echo $this->_tpl_vars['i']['ip']; ?>
</td> 
					<td><?php echo $this->_tpl_vars['i']['addtime']; ?>
</td>
					<td><?php if ($_SESSION['admin']['power'] == '1'): ?><a href="javascript:;" data-id="<?php echo $this->_tpl_vars['i']['id']; ?>
" class="del">删除</a><?php else: ?>/<?php endif; ?></td> 
					<td></td>
				</tr>
			<?php endforeach; endif; unset($_from); ?>
		<?php else: ?>
			<tr><td colspan="6">还没有数据</td></tr>
		<?php endif; ?>
		</tbody> 
	</table>
	<div class="operate"> 
		<input type="checkbox" class="checked_all checkbox"/>
		<input type="button" name="del_checked" class="del_ck button" value="删除选项"/> 
		<div class="tpage"><?php echo $this->_tpl_vars['data']['page']; ?>
</div>
	</div> 
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script type="text/javascript">
// 下拉菜单
$("#log_type").change(function(){
	type_id = $(this).children('option:selected').val();  
	location.href="?m=admin&a=log&type="+type_id;
});
<?php if ($_SESSION['admin']['power'] == '1'): ?>
_delete("?m=admin&a=log_del", '.del_ck'); 
<?php endif; ?>	
</script>